import request from "../request";

export function facility() {  //获取设施
    return request({
        url: 'security/capacity/security/facility',
        method: 'GET',
    })
}

export function dayEvent(params) {  //当日事件
    return request({
        url: 'incident/event/cockpit/public/queryIncidentAnalysis/' + params.type,
        method: 'GET',
    })
}

export function watchkeeper() {  //今日值班
    return request({
        url: 'security/capacity/security/watchkeeper',
        method: 'GET',
    })
}


export function monitor(params) {  //监控点位
    return request({
        url: 'iotbase/device/all?itemIds=36&typeIds=' + params,
        method: 'GET',
    })
}

export function monitorData() {  //监控摄像头
    return request({
        url: 'security/capacity/security/watchkeeper',
        method: 'GET',
    })
}

export function todayTop() {  //当日视频监控事件统计
    return request({
        url: 'incident/event/cockpit/park/queryVideo',
        method: 'GET',
    })
}

export function afAll(params) {  //安防总事件
    return request({
        url: 'incident/event/cockpit/park/queryNumber/' + params.type,
        method: 'GET',
    })
}

export function afSeven(params) {  //安防七日
    return request({
        url: 'incident/event/cockpit/public/querySevenAnalysis/' + params.type,
        method: 'GET',
        header: {'Tenant-id': 10100}
    })
}

export function afTable(params) {  //安防弹窗列表
    return request({
        url: 'incident/event/cockpit/public/queryPublicIssue/' + params.type,
        method: 'GET',
        params: params.data
    })
}


export function allPerson(params) {  //巡检人员
    return request({
        url: '/security/prompter/gis/gis',
        method: 'GET',
    })
}

export function userInfo(params) {  //巡检人员点位
    return request({
        url: 'security/prompter/user/' + params,
        method: 'get'
    })
}

export function queryByDeviceId(params) {  // 监控设备点位（告警次数）
    return request({
        url: '/incident/event/cockpit/public/queryByDeviceId/' + params.deviceId,
        method: 'get',
    })
}



